import { createRouter, createWebHistory } from 'vue-router'
import MatchingGame from '../components/MatchingGame.vue'
import CandyCrush from '../components/CandyCrush.vue'
import TankGame from '../components/TankGame.vue'

const routes = [
  {
    path: '/',
    redirect: '/matching-game'
  },
  {
    path: '/matching-game',
    name: 'MatchingGame',
    component: MatchingGame
  },
  {
    path: '/candy-crush',
    name: 'CandyCrush',
    component: CandyCrush
  },
  {
    path: '/tank-game',
    name: 'TankGame',
    component: TankGame
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router 